<?php

declare (strict_types = 1);

namespace app\adminapi\validate;

use think\Validate;

class ArticleValidate extends Validate
{
    protected $rule = [
        'cate_id'  => 'require',
        'title'  => 'require',
        'content' => 'require',
    ];

    protected $message = [
        'cate_id.require' => '分类ID不能为空',
        'title.require' => '文章标题不能为空',
        'content.require' => '文章内容不能为空'
    ];

}